#include<stdio.h>
#include<sys/types.h>
int main(int argc, char *argv[])
{
  char *line = NULL;
  size_t size = 0;
  ssize_t ret;

  while((ret = getline(&line, &size,stdin)) !=  -1)
    printf("(%lu) %s",size,line);
  
  return 0;
}
